import { decode } from '@/utils/bays4/index.js'
export function _decode(encodedData: string) {
  return !!encodedData && JSON.parse(decode(encodedData))
}
export function randomArray(arr: any[]) {
  let i = arr.length
  while (i) {
    let j = Math.floor(Math.random() * i--)
    ;[arr[j], arr[i]] = [arr[i], arr[j]]
  }
  return arr
}
